package com.theexceptions.todo.model;

/**
 * Simple location object for storing the coordinates of a task.
 * 
 * @author Justian Meyer
 */
public class Location {

	private long locID;
	private String name;
	private int latitude;
	private int longitude;

	/**
	 * Constructs a new location with the provided E6 coordinates.
	 * 
	 * @param latitude
	 * @param longitude
	 */
	public Location(long locID, String name, int latitude, int longitude) {
		this.locID = locID;
		this.name = name;
		this.latitude = latitude;
		this.longitude = longitude;
	}
	
	public long getID() {
		return locID;
	}
	
	public String getName() {
		return name;
	}

	public int getLatitude() {
		return latitude;
	}

	public int getLongitude() {
		return longitude;
	}
	
	public void setID(long id) {
		this.locID = id;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public void setLatitude(int latitude) {
		this.latitude = latitude;
	}

	public void setLongitude(int longitude) {
		this.longitude = longitude;
	}
	
	@Override
	public String toString() {
		return String.format("[%d: %s: %d, %d]", locID, name, latitude, longitude);
	}

}
